﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200038D RID: 909
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DeactivateFarmElementCsReq : IMessage<DeactivateFarmElementCsReq>, IMessage, IEquatable<DeactivateFarmElementCsReq>, IDeepCloneable<DeactivateFarmElementCsReq>, IBufferMessage
	{
		// Token: 0x17000BBC RID: 3004
		// (get) Token: 0x060028CE RID: 10446 RVA: 0x00071950 File Offset: 0x0006FB50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DeactivateFarmElementCsReq> Parser
		{
			get
			{
				return DeactivateFarmElementCsReq._parser;
			}
		}

		// Token: 0x17000BBD RID: 3005
		// (get) Token: 0x060028CF RID: 10447 RVA: 0x00071957 File Offset: 0x0006FB57
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DeactivateFarmElementCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000BBE RID: 3006
		// (get) Token: 0x060028D0 RID: 10448 RVA: 0x00071969 File Offset: 0x0006FB69
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DeactivateFarmElementCsReq.Descriptor;
			}
		}

		// Token: 0x060028D1 RID: 10449 RVA: 0x00071970 File Offset: 0x0006FB70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DeactivateFarmElementCsReq()
		{
		}

		// Token: 0x060028D2 RID: 10450 RVA: 0x00071978 File Offset: 0x0006FB78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DeactivateFarmElementCsReq(DeactivateFarmElementCsReq other) : this()
		{
			this.entityId_ = other.entityId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060028D3 RID: 10451 RVA: 0x0007199D File Offset: 0x0006FB9D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DeactivateFarmElementCsReq Clone()
		{
			return new DeactivateFarmElementCsReq(this);
		}

		// Token: 0x17000BBF RID: 3007
		// (get) Token: 0x060028D4 RID: 10452 RVA: 0x000719A5 File Offset: 0x0006FBA5
		// (set) Token: 0x060028D5 RID: 10453 RVA: 0x000719AD File Offset: 0x0006FBAD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EntityId
		{
			get
			{
				return this.entityId_;
			}
			set
			{
				this.entityId_ = value;
			}
		}

		// Token: 0x060028D6 RID: 10454 RVA: 0x000719B6 File Offset: 0x0006FBB6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DeactivateFarmElementCsReq);
		}

		// Token: 0x060028D7 RID: 10455 RVA: 0x000719C4 File Offset: 0x0006FBC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DeactivateFarmElementCsReq other)
		{
			return other != null && (other == this || (this.EntityId == other.EntityId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060028D8 RID: 10456 RVA: 0x000719F4 File Offset: 0x0006FBF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.EntityId != 0U)
			{
				num ^= this.EntityId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060028D9 RID: 10457 RVA: 0x00071A33 File Offset: 0x0006FC33
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060028DA RID: 10458 RVA: 0x00071A3B File Offset: 0x0006FC3B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060028DB RID: 10459 RVA: 0x00071A44 File Offset: 0x0006FC44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.EntityId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.EntityId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060028DC RID: 10460 RVA: 0x00071A78 File Offset: 0x0006FC78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.EntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EntityId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060028DD RID: 10461 RVA: 0x00071AB6 File Offset: 0x0006FCB6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DeactivateFarmElementCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.EntityId != 0U)
			{
				this.EntityId = other.EntityId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060028DE RID: 10462 RVA: 0x00071AE7 File Offset: 0x0006FCE7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060028DF RID: 10463 RVA: 0x00071AF0 File Offset: 0x0006FCF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 112U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.EntityId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400103B RID: 4155
		private static readonly MessageParser<DeactivateFarmElementCsReq> _parser = new MessageParser<DeactivateFarmElementCsReq>(() => new DeactivateFarmElementCsReq());

		// Token: 0x0400103C RID: 4156
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400103D RID: 4157
		public const int EntityIdFieldNumber = 14;

		// Token: 0x0400103E RID: 4158
		private uint entityId_;
	}
}
